package com.bingo.daoImpl;

import com.bingo.dao.UsersDAO;
import com.ibatis.sqlmap.client.SqlMapClient;

import ibatis.Users;
import ibatis.UsersExample;

import java.sql.SQLException;
import java.util.List;

public class UsersDAOImpl extends BaseDAO implements UsersDAO {
    
	public List getAll() throws Exception {
		return this.getSqlMapClientTemplate().queryForList("users.getAllUsers");
	}

	public Users getUserByName(String uName) throws Exception {
		return (Users)this.getSqlMapClientTemplate().queryForObject("users.getUserByName",uName);
	}

}